This state machine project shows a working example of the State Machine Language that was presented in "Enhancing a State Machine Language through Messaging" in the book AI Game Programming Wisdom.
The demo doesn't do anything impressive, but it is designed to show the minimal amount of code required to support the concepts from the article. Compile the code in Visual C++ and step through the execution to understand how it works. Refer to the article "Implementing a State Machine Language" and "Enhancing a State Machine Language through Messaging" for detailed explanations.